package class1;

public class Teacher {
    private int id;
    private String teacherName;
    private String teacherSex;
    private Course[] courses;

    // 构造函数
    public Teacher() {
        super();
        courses = new Course[3];
    }

    public Teacher(int id, String teacherName, String teacherSex) {
        this.id = id;
        this.teacherName = teacherName;
        this.teacherSex = teacherSex;
        courses = new Course[3];
    }

    public Teacher(String teacherName) {
        this.teacherName = teacherName;
        courses = new Course[3];
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getTeacherSex() {
        return teacherSex;
    }

    public void setTeacherSex(String teacherSex) {
        this.teacherSex = teacherSex;
    }

}